package com.rolerealm.service.strategy;

import com.rolerealm.domain.enums.SkillType;
import org.springframework.stereotype.Component;

@Component
public class LangSkillStrategy implements SkillStrategy {

	@Override
	public SkillType getType() {
		return SkillType.lang;
	}

	@Override
	public void validate(String input) {
		if (input == null || input.isBlank()) {
			throw new IllegalArgumentException("input cannot be blank");
		}
	}

	@Override
	public String buildPrompt(String input) {
		return "你是语言教学助手，请指出语法错误并给出改写与发音提示。文本：" + input;
	}
}




